//
//  TodoListApp.swift
//  TodoList
//
//  Created by 刘圣洁 on 2025/6/12.
//

import SwiftUI

/*
 MVVM 架构
 
 Model - 数据模型
 View - UI
 ViewModel - 为View管理模型
 
 */
@main
struct TodoListApp: App {
    
    @StateObject var listViewModel: ListViewModel = ListViewModel()
    
    var body: some Scene {
        WindowGroup {
            NavigationStack {
                ListView()
            }
            .environmentObject(listViewModel)
        }
    }
}
